package com.bd.wechat.controller;

import com.bd.wechat.core.R;
import com.bd.wechat.service.TencentMapService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/wechat/tencentMap")
public class TencentMapController {
    @Resource
    private TencentMapService tencentMapService;

    @GetMapping("matrix")
    public R matrix(String from, String to) {
        String matrix = tencentMapService.getMATRIX(from, to);
        return R.ok(matrix);
    }
}
